﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;
using DDD;
using Xunit;

namespace DokiDokiTest {
   public class TestVertexShader {
       [Fact]
       public void Test_New1 () {
           var vs = new VertexShader ("Res/Shaders/simple.vert");

           Assert.Equal (350, vs.Source.Length);
       }

       [Fact]
       public void Test_New2 () {
           var sr = new StreamReader ("Res/Shaders/simple.vert");
           var buf = System.Text.Encoding.ASCII.GetBytes (sr.ReadToEnd ());
           var vs = new VertexShader (new MemoryStream (buf));

           Assert.Equal (350, vs.Source.Length);
       }
    }
}
